<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Orders
 *
 * @property int $id ????id
 * @property int $user_id ?û?id
 * @property string $order_num ????????
 * @property float $m_amount ????ԭ?ܶ?
 * @property float $s_amount ????ʵ???ܶ?
 * @property int $invoice_id ??Ʊ??Ϣid
 * @property string|null $express_num ???͵???
 * @property string|null $express ???ݹ?˾
 * @property float $express_fee ???ݷ???
 * @property string|null $express_time ????ʱ??
 * @property int $address_id ???͵?ַid
 * @property int $is_pay ?Ƿ???֧????0??δ֧????1????֧??
 * @property string|null $pay_time ֧??ʱ??
 * @property string|null $pay_type ֧????ʽ wechat
 * @property string|null $remark ??ע
 * @property int $status ????״̬??0??δȷ?ϣ?1??ȷ?϶?????2???̼???ȷ?ϣ?3???ѷ?????4:???ջ??????ɣ?5:?رս??ף?6???˻?????
 * @property string|null $deleted_at
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\Orders onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereAddressId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereExpress($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereExpressFee($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereExpressNum($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereExpressTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereInvoiceId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereIsPay($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereMAmount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereOrderNum($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders wherePayTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders wherePayType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereRemark($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereSAmount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereUserId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Orders withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Orders withoutTrashed()
 * @mixin \Eloquent
 * @property string|null $type 订单类型：common:常规订单;integral:积分订单
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereType($value)
 * @property string|null $integral 兑换商品所需的积分
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereIntegral($value)
 * @property string|null $coupon_id 使用的优惠券的id,user_coupon表
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereCouponId($value)
 * @property int $activity_id 活动id  包括砍价活动和拼团活动
 * @property int $group_type 拼团类型 1：单独购买 2：发起拼团 3：参加拼团
 * @property int $group_refund 是否退款 0：未退款 1：已退款 2：退款失败
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereActivityId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereGroupRefund($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereGroupType($value)
 * @property int $group_id 拼团id
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereGroupId($value)
 */
class Orders extends Model
{
    protected $table = 'orders';
    use SoftDeletes;
}
